home *** CD-ROM | disk | FTP | other *** search
/ The Mac Bible 6 / The Mac Bible 6 CD-ROM (Peachpit Press)(1996).iso / Clip Art⁄Stock Photos / Cumulus Browser (US) / Documentation / Export Formats < prev    next >
Text File  |  1994-07-06  |  6KB  |  91 lines

  1. Export Formats of Cumulus
  2.  
  3. Cumulus allows to export records, keywords and queries into text files so that they can either be imported again or processed by a text editor. The log file of Cumulus is also a text file so it can also be read by other applications.
  4.  
  5. Record Export
  6.  
  7. When transferring data records from one image database to another it can be appropriate to export those records into a text file and import this file into the other database.
  8. A record export file of Cumulus always starts with the following line:
  9. “© Copyright 1992, Canto GmbH Berlin, Cumulus 1.0 Export”. This text is used to check whether this is a valid record export file to prevent from reading other text files. After this line the records are listed each on a separate line. The fields of each record are separated by tab character and are stored in the following order:
  10.  
  11. 1. File type of the image file (4 characters)
  12. 2. Creator type of the software that created the image file (4 characters)
  13. 3. Creation date of the image file
  14. 4. Modification date of the image file
  15. 5. Data size of the image file in bytes
  16. 6. Resource size of the image file in bytes
  17. 7. Color mode (0 = Line Art, 1 = Grayscale, 2 = Color)
  18. 8. Horizontal resolution in dpi
  19. 9. Vertikal resolution in dpi
  20. 10. Width of the image given in inches
  21. 11. Height of the image given in inches
  22. 12.  Specifies whether the record can be modified ( 0 = Record can be modified, 1 = Record cannot be modified)
  23. 13. Specifies whether the record can be modified ( 0 = Record can be deleted, 1 = Record cannot be deleted)
  24. 14. Creation date of the record
  25. 15. Modification date of the record
  26. 16. Image name
  27. 17. Status
  28. 18. The name of the person who cataloged the image
  29. 19. Name of the software that created the image file
  30. 20. The Notes with all line feeds and tab character replaced by spaces.
  31. 21. The alias to the image file as hexadecimal text
  32. 22. The thumbnail as hexadecimal text
  33. 23. Type-specific information as hexadecimal text
  34. 24. The list keywords assigned to this record. Each keyword is separated by a tab character.
  35.  
  36. Keyword Export
  37.  
  38. You can export and import a list of keywords to tranfer them from one image database to the other. You can also create a text file that contains a keyword list with a text editor to extend the keyword list of your database.
  39.  
  40. A keyword export file always starts with the following line:
  41. “© Copyright 1992, Canto GmbH Berlin, Cumulus 1.0 Keyword Export”. This text is used to check whether this is a valid keyword export file to prevent from reading other text files. Each line defines a single keyword and contains the keyword name and - separated by a tab character - the parent keyword's name. For keywords of the top level the parent keyword is omitted.
  42. This allows Cumulus to insert additional sub-keyword for existing keywords by importing from a text file.
  43. When importing keyword from a text file Cumulus checks whether there is a parent keyword specified. If the parent keyword is missing Cumulus adds the keyword to the top level. If there is a parent keyword specified in the import file then Cumulus looks for the parent keyword in the keyword list. If it does not exit then it is added to the list at top level. Then the keyword is added as a new sub-keyword to the parent keyword.
  44.  
  45. If you are creating the keyword export file with an application other than Cumulus please make sure that you first define the parent keyword before you define sub-keywords of it. Otherwise Cumulus cannot reproduce the keyword structure you have intended. There is no way to move a keyword from one parent to the other by importing a text file.
  46. The following example defines a new keyword ("Plant") at top level and then defines two sub-keywords ("Tree" and "Flower"). The tab character is shown as“ ->| ”):
  47.  
  48. © Copyright 1992, Canto GmbH Berlin, Cumulus 1.0 Keyword Export
  49. Plant ->|
  50. Tree ->| Plant
  51. Flower ->| Plant
  52.  
  53. Query Export
  54.  
  55. You can store multiple search queries into a text file to load them back again in Cumulus. You can also create a query export file with any text editor.
  56. A query export file is a list of search conditions separated by line feeds. Each search condition 
  57. consists of the following fields separated by tab characters:
  58.  
  59. 1. The logical operator to combine two conditions. Possible values are "and" and "or". The first condition in the file has no such operator and therefor starts with the tab character.
  60. 2. The search field, e.g.. “Image Name”. The pop-up menu for the search field of the Find window in Cumulus shows all possible values.
  61. 3. The comparison operator, e.g. “contains”. After choosing the search field in Cumulus the pop-up menu for the comparison operator shows all possible values.
  62. 4. The value to be compared. This value depends on the search field chosen.
  63.  
  64. The following example shows a query that searches for all records with the keyword "Flower" that contain the word "Rose" in their notes field and is a grayscale or color image:
  65.  
  66. ->| Keyword ->| is ->| Flower
  67. and ->| Notes ->| contains ->| Rose
  68. and ->| Color Mode ->| is not ->| Line Art
  69.  
  70. The Log File
  71.  
  72. Cumulus optionally stores the activity log for a database into a text file. You can open that text file with a text editor.
  73. All activities are written to the log file starting with the oldest.
  74. Each line contains a single activity with the following fields separated by tab characters:
  75.  
  76. 1. Date
  77. 2. Time
  78. 3. User
  79. 4. Action
  80. 5. Additional Name. This name identifies the object for the activity.
  81.  
  82. The following log file shows some activities that changed a database on June, 7th 1994:
  83.  
  84. 6/7/94 ->| 11:32:34 ->| Norman ->| Database opened ->|  
  85. 6/7/94 ->| 11:38:03 ->| Susan ->| Changed: ->| Roses in the mist
  86. 6/7/94 ->| 11:39:06 ->| Susan ->| Keyword added: ->| Keyword
  87. 6/7/94 ->| 11:41:09 ->| Norman ->| Keyword changed: ->|  Flower
  88. 6/7/94 ->| 11:42:13 ->| Norman ->| Database closed ->|
  89.  
  90. ©1994, Canto Software
  91.